<?php

/**
 * 栏目列表数据
 */
Route::get('application/collist_datas', ['as'=> 'application.collist_datas.index', 'uses' => 'Application\CollistDataController@index']);
Route::post('application/collist_datas', ['as'=> 'application.collist_datas.store', 'uses' => 'Application\CollistDataController@store']);
Route::get('application/collist_datas/create', ['as'=> 'application.collist_datas.create', 'uses' => 'Application\CollistDataController@create']);
Route::put('application/collist_datas/{collist_datas}', ['as'=> 'application.collist_datas.update', 'uses' => 'Application\CollistDataController@update']);
Route::patch('application/collist_datas/{collist_datas}', ['as'=> 'application.collist_datas.update', 'uses' => 'Application\CollistDataController@update']);
Route::delete('application/collist_datas/{collist_datas}', ['as'=> 'application.collist_datas.destroy', 'uses' => 'Application\CollistDataController@destroy']);
Route::get('application/collist_datas/{collist_datas}', ['as'=> 'application.collist_datas.show', 'uses' => 'Application\CollistDataController@show']);
Route::get('application/collist_datas/{collist_datas}/edit', ['as'=> 'application.collist_datas.edit', 'uses' => 'Application\CollistDataController@edit']);

// 根据数据类型获取不同源下的数据
Route::get('application/collist_datas/datas/resources', ['as'=> 'application.collist_datas.datas.resources', 'uses' => 'Application\CollistDataController@getReasoureByDataType']);

// ajax根据类型获取不同模板数据
Route::get('application/collist_datas/datas/{datas}/resources', ['as'=> 'application.collist_datas.resources', 'uses' => 'Application\CollistDataController@getReasourceData']);